= form_for @homework do |f|
  - if @homework.errors.any?
    #error_explanation
      %h2= "#{pluralize(@homework.errors.count, "error")} prohibited this homework from being saved:"
      %ul
        - @homework.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :name
    = f.text_field :name
  .field
    = f.label :url
    = f.text_field :url
  .field
    = f.label :desc
    = f.text_field :desc
  .actions
    = f.submit 'Save'
